package item.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import item.bean.Car;
import item.dao.CarDao;
import item.service.ICarService;
import item.util.Page;
@Service
public class CarService implements ICarService{
	@Autowired
	CarDao dao;

	public List<Car> getCar(Car car,Page page) {
		return dao.getCar(car,page);
	}
	public int addCarMes(Car car) {
		return dao.addCarMes(car);
	}
	public int delCar(int id) {
		
		return dao.delCar(id);
	}
	public int editCar(Car car) {
		return dao.editCar(car);
	}
	public int editCarByID(Car car) {
		return dao.editCarByID(car);
	}
	public Car getCarById(int id) {
		return dao.getCarById(id);
	}
	public int deleteCar(int id) {
		int count =dao.deleteCar(id);
		return count;
	}
	public int getCount(Car car) {
		// TODO Auto-generated method stub
		return dao.getCount(car);
	}
	public int editCarStatus(Car car) {
		return dao.editCarStatus(car);
	}
	public int rentaleditCarStatus(Car car) {
		return dao.rentaleditCarStatus(car);
	}
}
